const path = require('path');
const { SRC_PATH, ROOT_PATH } = require('./variable');

module.exports = {
    extensions: [
        '.tsx',
        '.ts',
        '.js',
        '.json'
    ],
    modules: [
        path.resolve(ROOT_PATH, 'node_modules')
    ],
    // 查找 package.json main
    mainFields: [
        'main'
    ],
    alias: {
        '@': SRC_PATH,
        '@images': path.resolve(SRC_PATH, 'assets/images'),
    },
};